package com.gitee.huanminabc.jcommon.mock;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 用户数据对象模型, 用于测试啥的
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserData implements Serializable {
    private static final long serialVersionUID = 1123L;
    private Integer id;
    private Long  userId; //用户ID
    private String name; //名称
    private String pass; //密码
    private Integer age; //年龄
    private String sex;//性别
    private String site; //地址
    private Date date;
    private LocalDate localDate;
    private LocalDateTime localDateTime;
    private BigDecimal amt;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}

